﻿using System;
using System.ComponentModel.DataAnnotations;

namespace K9Nano.IM.Security
{
    public abstract class AppSignModel : IAppSignModel
    {
        [Display(Name = "AppID")]
        [Required(AllowEmptyStrings = false)]
        public Guid AppId { get; set; }

        [Display(Name = "签名")]
        [Required(AllowEmptyStrings = false)]
        public string Sign { get; set; }

        [Display(Name = "时间戳")]
        [Required]
        public long Timestamp { get; set; }

        public abstract string GetFormatString();
    }
}